home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 4 / Amiga Tools 4.iso / tools / internet-tools / connect-line / cl / devkit / c / include / cls.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-12  |  3.6 KB  |  112 lines

  1. /* cls v8.0 */
  2.  
  3. #ifndef _NO_PRAG
  4. extern struct Library *CLSBase;
  5. #pragma libcall CLSBase CLS_LoadList 1e 0
  6. #pragma libcall CLSBase CLS_SaveList 24 0
  7. #pragma libcall CLSBase CLS_GetEntry 2a 801
  8. #pragma libcall CLSBase CLS_FindEntry 30 801
  9. #pragma libcall CLSBase CLS_DeleteEntry 36 801
  10. #pragma libcall CLSBase CLS_AddEntry 3c 801
  11. /* semaphore locking*/
  12. #pragma libcall CLSBase CLS_LockList 42 001
  13. #pragma libcall CLSBase CLS_UnlockList 48 0
  14. #pragma libcall CLSBase CLS_LastEntry 4e 801
  15. /* "tag" support*/
  16. #pragma libcall CLSBase CLS_AddTag 54 109804
  17. #pragma libcall CLSBase CLS_GetTag 5a 0802
  18. #pragma libcall CLSBase CLS_DelTag 60 0802
  19. /* master rfc/zc rout parser (OBSOLETE!, use cl_route.library instead)*/
  20. #pragma libcall CLSBase CLS_DoRouting 66 BA9804
  21. /* multiple domain support*/
  22. #pragma libcall CLSBase CLS_FindBox 6c 801
  23. #pragma libcall CLSBase CLS_TestBoxDomain 72 9802
  24. /* OBSOLETE, use cl_route.library instead!*/
  25. #pragma libcall CLSBase CLS_IsThisMe 78 801
  26. #pragma libcall CLSBase CLS_Private1 7e 0
  27. /* new for v3*/
  28. #pragma libcall CLSBase CLS_GetTagSize 84 801
  29. /* new for v4*/
  30. #pragma libcall CLSBase CLS_GetNumEntries 8a 0
  31. /* new for V8*/
  32. #pragma libcall CLSBase CLS_IsModified 90 0
  33. #pragma libcall CLSBase CLS_GetBoxNumber 96 90803
  34. /* new for V9 */
  35. #pragma libcall CLSBase CLS_GetSystemNetData 9c 801
  36. #pragma libcall CLSBase CLS_ResetSystemNetData a2 801
  37. /* new for V10 */
  38. #pragma libcall CLSBase CLS_FindPoint a8 801
  39. #endif
  40.  
  41. #ifndef _NO_PROTO
  42. int CLS_LoadList(void);
  43. int CLS_SaveList(void);
  44. struct Box *CLS_GetEntry(struct Box*);
  45. struct Box *CLS_LastEntry(struct Box*);
  46. void CLS_DeleteEntry(struct Box*);
  47. void CLS_AddEntry(struct Box*);
  48. void CLS_LockList(int);
  49. void CLS_UnlockList(void);
  50. long CLS_AddTag(struct Box*,void*,short,short);
  51. void *CLS_GetTag(struct Box*,short);
  52. long CLS_DelTag(struct Box*,short);
  53. struct Box *CLS_FindBox(char*);
  54. long CLS_TestBoxDomain(struct Box*,char*);
  55. long CLS_GetTagSize(void*);
  56. long CLS_GetNumEntries(void);
  57. long CLS_IsModified( void );
  58. void CLS_GetBoxNumber( struct Box *box, ULONG index, STRPTR phonebuffer );
  59. APTR CLS_GetSystemNetData( struct Box *box );
  60. void CLS_ResetSystemNetData( struct Box *box );
  61. struct Box * CLS_FindPoint( STRPTR username );
  62. #endif
  63.  
  64. #define CLS_NAME "clsystem.library"
  65. #define CLS_VERSION 10
  66.  
  67. struct Box
  68. {
  69.    char boxname[41];            // Name
  70.    char boxtext[41];            // Domain
  71.    char outserver[41];            // Routesystem
  72.    char netzname[29];           // gekürzt!
  73.  
  74.    ULONG valid_ports;           // gueltige Ports
  75.    long rout_grundkosten;       // Wird bei Routmail an dieses System
  76.                                 // einmal berechnet
  77.    long eil_grundkosten;        // Wird bei Eilmail an dieses System
  78.                                 // einmal berechnt
  79.    UBYTE modeminit;                // Welches Modem-Init
  80.    char reserved[10];    // Not in USE
  81.    char xprprotosend[11];        
  82.    char packerin[41];
  83.    char packerout[41];
  84.    char groups[16];
  85.    char pointuser[41];
  86.    char telefon[61];
  87.    char boxinit[41];
  88.    long priority;
  89.    char password[41];
  90.    long flags;
  91.    long lastpoll;
  92.    long eilkosten;              // gab es schon vorher, jetzt pro KB bei Mail
  93.    long batchsize;
  94.    long routkosten;             // wie eilkosten
  95.    long maxpm;
  96.    long ignoreme;                // OBSOLETE!
  97. };
  98.  
  99. #define BOX_NOEIL 1
  100. //#define BOX_NOBLITZ 2 // Gibbet nicht mehr
  101. #define BOX_NOROUT 4
  102. #define BOX_MAPS 8
  103. #define BOX_AUTOEINTRAG 16
  104. //#define BOX_TELEFON 32        // Gibbet nicht mehr
  105. //#define BOX_HIDDEN 64 // Gibbet nicht mehr
  106. #define BOX_BACKUP 128
  107. //#define BOX_PACKDELAY 256   // Crosspoint-Flag
  108. #define BOX_EXTPROTO 512              
  109. //#define BOX_REMAP 1024  // Gibbet nicht mehr
  110. //#define BOX_POSTPACK 4096  // Gibbet nicht mehr
  111. //#define BOX_DOMAINROUTING 8192 // Gibbet nicht mehr
  112.